import { _decorator } from 'cc';
const { ccclass } = _decorator;

@ccclass('Config')
export class Config  {

    //static mode = "dev"
    static mode = "release"
    //static mode = "local"

    static apiDomain() {

     return Config.mode == "dev" ? "http://art-api-dev.edge-x.cn/" : "https://art-api.edge-x.cn/"

    }

    static appDomain() {
        return Config.mode == "dev" ? "http://activities-h5-dev.edge-x.cn/" : "https://app.edge-x.cn/"
    }

    static isRelease():boolean {
        return Config.mode == "release"
    }

    static isLocal():boolean {
        return Config.mode == "local"
    }

}

